package com.chiga.interceptor;

import com.chiga.holder.ThreadHolder;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
import com.sun.corba.se.spi.orbutil.fsm.ActionBase;

public class CheckLoginInterceptor extends AbstractInterceptor {

	private static final long serialVersionUID = 2742799973490965388L;

	@Override
	public String intercept(ActionInvocation ai) throws Exception {
		
		
		Object action = ai.getAction();
		
		if (action instanceof ActionBase) {
			
		}
		
		try {
			return ai.invoke();
		} finally {
			ThreadHolder.clear();
		}
	}
}
